from selenium.webdriver.common.by import By



def MD_login(driver, email, order):

    ele_email = driver.find_element(By.ID, 'email-input')
    ele_email.send_keys(email)
    ele_button_1 = driver.find_element(By.ID, 'submit')
    ele_button_1.click()
    ele_password = driver.find_element(By.ID, 'current-password')
    ele_password.send_keys(order)
    ele_button_2 = driver.find_element(By.ID, 'submit')
    ele_button_2.click()
    element = driver.find_element(By.XPATH, "//h1[@class='font-bold text-3xl mr-6']").text

    return element



